/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

L   30.45;
W   10.75;
H   9.95;

l #calc "$L * -1";
w #calc "$W * -1";
h #calc "$H * -1";



//cl2   #calc "$L * 1000 / $CellSize / 2";
//cw2   #calc "$W * 1000 / $CellSize";
//ch2   #calc "$H * 1000 / $CellSize / 2";


//cl #calc "round(cl2)"
//cw #calc "round(cw2)" // no 2 as half total width
//ch #calc "round(ch2)"

vertices
(
    (  0.0  $w     0.0) // bottom
    (  $L   $w     0.0)
    (  $L   $W     0.0)
    (  0.0  $W     0.0)
    (  0.0  $w     $H) // top
    (  $L   $w     $H)
    (  $L   $W     $H)
    (  0.0  $W     $H)
);

blocks
(
	 hex (0 1 2 3 4 5 6 7) (153 108 50) simpleGrading (1 1 1)  // 100mm resolution after 2 x adaptive increase
);

edges
(
);

boundary
(
    ground
    {
        type patch;
        faces
        (
            (0 1 2 3)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (0 1 5 4)
            (1 2 6 5)
            (3 2 6 7)
            (0 3 7 4)
            (4 5 6 7)
        );
    }

);

mergePatchPairs
(
);

// ************************************************************************* //
